#ifndef __XPT2046_H__
#define __XPT2046_H__
#include "SoftSPI.h"

class XPT2046
{
  private:
    const BasicIO &Port;
    template<uint32_t a> uint16_t Filter(uint16_t*,uint32_t) const;
    uint16_t GetAverage(uint8_t) const;
    
  protected:
    
  public:
    
    XPT2046(const BasicIO &_Port):Port(_Port) {}
    uint16_t Get(uint16_t&,uint16_t&) const;
};

#endif
